<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./libs/layui/layui.all.js"></script>
    <link rel="stylesheet" href="./libs/layui/css/layui.css">
</head>
<body>
<div id="pager"></div>
<script>
   layui.use('laypage', function(){
    var laypage = layui.laypage;
  
  //执行一个laypage实例
    laypage.render({
    elem: 'pager' //注意，这里的 pager 是 ID，不用加 # 号
    ,count: 70,
    curr:3,
    limit:20,   //页容量
    
    jump:function(obj,first){
        if(!first){
            console.log('业务代码写这里');
        }
    }
  });
}); 
</script>
</body>
</html>